Skip to main content

Get Mail By Id

AutomatR.Office365.Activities.GetMailById

The "Get Mail By Id" activity in AutomatR is part of the Office 365 activities package, allowing automation processes to retrieve detailed information about an email message using its unique identifier (Message-ID). This activity provides the flexibility to obtain specific details, such as the sender, recipients, subject, body, attachments, and more.

Properties

NameDescription
Input
Message IDSpecifies the unique identifier (Message-ID) of the email message you want to retrieve details for. Ensure that the provided Message-ID is valid and corresponds to an existing email. String variables containing the Message-ID.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
Entry DelaySpecifies the amount of time (in seconds) to wait before executing the "Get Mail By Id" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
MessageOutputs the detailed information of the email message identified by the provided Message-ID. The information includes sender, recipients, subject, body, attachments, etc. Use a MailMessage variable to store the retrieved email details for further processing in the workflow.

How to use:

  1. Drag and drop the "Get Mail By Id" activity onto the workflow.
  2. Configure the properties by specifying the entry delay duration and the Message-ID of the email you want to retrieve details for.
  3. Execute the workflow to obtain the detailed information of the specified email.

Example: Consider an example where the "Get Mail By Id" activity is used to retrieve details of an email with a specific Message-ID:

Get Mail By Id:
Display Name: "Retrieve Invoice Email"
Entry Delay: 5
Message ID: "1234567890abcdef"
Result: retrievedMailDetails

In this example, the activity waits for 5 seconds before retrieving the detailed information of the email with the Message-ID "1234567890abcdef." The retrieved email details are stored in the retrievedMailDetails variable for further handling in the workflow.